
import Server from "../request";
import { hostURL } from "../utils/config";

const api = new Server(hostURL)

class UserApi {
    async all() {
        return api.get('/user')
    }
    async list(param) {
        return api.post('/user/list', param)
    }
    async add(param) {
        return api.post('/user/add', param)
    }
    async update(param) {
        return api.post('/user/update', param)
    }
    async login(param) {
        return api.post('/user/login', param)
    }
    async stop(param) {
      return api.post('/user/stop', param)
    }
}

export default new UserApi;
